<%@page import="it.trekker.upload.json.IFileLoaderFactory"%>
<%@ page import="java.util.*" %>
<%@ page import="it.trekker.upload.*" %>
 
<%

IFileLoaderFactory fileLoaderFactory = new FileLoaderFactory();
IFileLoader2Database fileLoader = fileLoaderFactory.getFileLoader();

List<String> pathList = UploadUtilities.receiveAndSaveFile(request, getServletContext().getRealPath("/"));
for(String filePath : pathList) {
	fileLoader.extractData2Database(filePath);
}

%>